import { Schema, model } from 'mongoose'

const userSchema = new Schema({
  name: { type: 'string', required: true },
  age: { type: 'number', required: false },
})

const User = model('User', userSchema)

export default User
